import type { App } from 'vue'
import { Icon } from './Icon'
import { Permission } from './Permission'
import { BaseButton } from './Button'
import { DifyChat } from './DifyChat'
import { DifyDialog } from './DifyDialog'
import { ConfigGlobal } from './ConfigGlobal'
import { IntelligentChatDialog } from './IntelligentChatDialog'

export * from './Button'
export * from './Dialog'
export * from './Collapse'
export * from './Search'
export * from './Table'
export * from './Form'
export * from './Descriptions'
export * from './ContentWrap'
export * from './ContentDetailWrap'

export const setupGlobCom = (app: App<Element>): void => {
  app.component('Icon', Icon)
  app.component('Permission', Permission)
  app.component('BaseButton', BaseButton)
  app.component('DifyChat', DifyChat)
  app.component('DifyDialog', DifyDialog)
  app.component('ConfigGlobal', ConfigGlobal)
  app.component('IntelligentChatDialog', IntelligentChatDialog)
}
